<extend name="base"/>
<block name="body">
<div id="url" class="r_con_wrap">
	<form id="add_form" class="add_form <eq name='update' value='1'>mod_form</eq>" method="post" action="{:U('Material/urlsSave')}">
        <table border="0" cellpadding="5" cellspacing="0">
            <tr>
                <td>名称 <input type="text" name="name" value="{$theurl.name}" size="25" class="form_input" notnull /></td>
                <td>Url <input type="text" name="url" value="{$theurl.url}" size="40" class="form_input" notnull /></td>
                <td><input type="hidden" name="id" value="{$theurl.id}"/><input type="submit" class="submit" value="<eq name='update' value='1'>更新URL<else/>添加URL</eq>" name="submit_btn"></td>
            </tr>
        </table>
    </form>
    <table border="0" cellpadding="5" cellspacing="0" class="r_con_table">
        <thead>
            <tr>
                <td width="10%" nowrap="nowrap">序号</td>
                <td width="30%" nowrap="nowrap">名称</td>
                <td width="50%" nowrap="nowrap">Url</td>
                <td width="10%" nowrap="nowrap" class="last">操作</td>
            </tr>
        </thead>
        <tbody>
        <foreach name="lists" item="v" key="k">
                    <tr>
                <td nowrap="nowrap">{$k+1}</td>
                <td>{$v.name}</td>
                <td><a href="{$v.url}" target="_blank">{$v.url}</a></td>
                <td class="last" nowrap="nowrap">
                    <a href="{:U('url',array('id'=>$v['id']))}"><img src="__PUBLIC__/Member/images/ico/mod.gif" align="absmiddle" alt="编辑" /></a>
                    <a href="{:U('urlsDel',array('id'=>$v['id']))}" onClick="if(!confirm('删除后不可恢复，继续吗？')){return false};"><img src="__PUBLIC__/Member/images/ico/del.gif" align="absmiddle" alt="删除" /></a>
                </td>
            </tr>
          </foreach>
                </tbody>
    </table>
    <div class="blank20"></div>
    <div id="turn_page">{$page}</div>
</div>
</block>